﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CodeStudy.WCF.Models
{
    /// <summary>
    /// The base class of all response sent by my service
    /// </summary>
    [DataContract]
    public class ResponseBase
    {
        /// <summary>
        /// Gets or sets a value indicating whether this response has error.
        /// </summary>
        /// <value>
        ///   <c>true</c> if this response has error; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool HasError { get; set; }

        /// <summary>
        /// Gets or sets the response message.
        /// </summary>
        /// <value>
        /// The response message.
        /// </value>
        [DataMember]
        public string ResponseMessage { get; set; }
    }
}
